﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using YouHP.Model;

namespace YouHP.IDAL
{
    public interface IUserActivity
    {
        #region basic operations
        bool AddUserActivity(UserActivityInfo info);
        bool CheckUserActivity(UserActivityInfo info);
        bool UpdateUserActivity(UserActivityInfo info);
        bool DeleteUserActivity(int[] ids);
        UserActivityInfo GetUserActivityInfo(int id);
        #endregion

        #region list and search operations
        List<UserActivityInfo> GetUserActivityList(int pageSize, int pageIndex, out int count);
        /*search for management*/
        List<UserActivityInfo> GetUserActivityByUserName(int pageSize, int pageIndex, string keyword, out int count);
        List<UserActivityInfo> GetUserActivityByActivityId(int pageSize, int pageIndex, int activityId, string keyword, out int count);
        #endregion
    }
}